package com.haima.sage.bigdata.api.vo;

import java.util.HashMap;
import java.util.Map;


public class AuditLogVO extends BaseVO {
    // search
    private String from;
    private String size;
    private String beginDate; // must >=
    private String endDate; // must <
    private String appId;
    private String appName;
    private String userId;
    private String userName;
    private String name;
    private String content;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Map<String, ?> getParams() {
        Map<String, Object> map = new HashMap<>();
        if (beginDate != null) {
            map.put("beginDate", beginDate);
        }
        if (endDate != null) {
            map.put("endDate", endDate);
        }
        if (appId != null) {
            map.put("appId", appId);
        }
        if (appName != null) {
            map.put("appName", appName);
        }
        if (userId != null) {
            map.put("userId", userId);
        }
        if (userName != null) {
            map.put("userName", userName);
        }
        if (name != null) {
            map.put("name", name);
        }
        if (content != null) {
            map.put("content", content);
        }
        if (from != null) {
            map.put("from", from);
        }
        if (size != null) {
            map.put("size", size);
        }
        return map;
    }
}
